package com.ruicar.afs.cloud.product.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ruicar.afs.cloud.product.condition.WorkTaskCondition;
import com.ruicar.afs.cloud.product.entity.WorkTaskAssign;
import com.ruicar.afs.cloud.product.mapper.WorkTaskAssignMapper;
import com.ruicar.afs.cloud.product.service.WorkTaskAssignService;
import com.ruicar.afs.cloud.product.vo.WorkTaskLaunchVo;
import com.ruicar.afs.cloud.product.vo.WorkTaskModifyVo;
import com.ruicar.afs.cloud.product.vo.WorkTaskSumVo;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author mingzhi.li
 */
@Service
public class WorkTaskAssignServiceImpl extends ServiceImpl<WorkTaskAssignMapper, WorkTaskAssign> implements WorkTaskAssignService {

    //获取待办任务汇总信息
    @Override
    public IPage<List<WorkTaskSumVo>> getWorkTaskSum(Page page, WorkTaskCondition condition) {
        return this.baseMapper.getWorkTaskSum(page, condition);
    }

    //产品上线待办任务信息列表
    @Override
    public IPage<List<WorkTaskLaunchVo>> queryApproveTaskLaunchList(Page page, WorkTaskCondition workTaskCondition) {
        return this.baseMapper.queryApproveTaskLaunchList(page, workTaskCondition);
    }

    //产品上线待办任务信息列表
    @Override
    public IPage<List<WorkTaskModifyVo>> queryApproveTaskModifyList(Page page, WorkTaskCondition workTaskCondition) {
        return this.baseMapper.queryApproveTaskModifyList(page, workTaskCondition);
    }

}
